<?php
defined('_JEXEC') or die('Restricted access');
require_once(JPATH_COMPONENT.DS.'data'.DS.'DAOFTRouteConfig.php');
require_once(JPATH_COMPONENT.DS.'dominio'.DS.'DTOFactory.php');

class JDAOFTRouteConfig implements DAOFTRouteConfig{
	
	public function __construct(){
		
	}
	
	private function singleObjectQuery($query){
		$db =& JFactory::getDBO();
		$db->setQuery( $query );
		$row = $db->loadObject();
		if ($db->getErrorNum()) {
			echo $db->stderr();
			return false;
		}
		return $row;
	}
	
	public function getFTRouteConfig(){
		$row= $this->singleObjectQuery("SELECT * FROM #__sr_routeconfig WHERE active=1");
		return DTOFactory::getInstance()->getDTOFTRouteConfig($row);
	}
	
}

?>